package com.xiaomi.pojo;

import java.io.Serializable;

//购物车表
public class Shoppingcart implements Serializable {

    private int scid;//购物车表id
    private int deid;//商品编号
    private int count;//数量
    private int uid;//用户表id

    private String comname;//商品名称
    private String config;//商品配置

    private double depraice;//价格
    private String picture;//图片名称

    public double getDepraice() {
        return depraice;
    }

    public void setDepraice(double depraice) {
        this.depraice = depraice;
    }

    public String getPicture() {
        String[] pictures = picture.split(",");
        System.out.println(pictures[0]);
        return pictures[0];
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }


    public String getComname() {
        return comname;
    }

    public void setComname(String comname) {
        this.comname = comname;
    }

    public String getConfig() {
        return config;
    }

    public void setConfig(String config) {
        this.config = config;
    }

    public int getScid() {
        return scid;
    }

    public void setScid(int scid) {
        this.scid = scid;
    }

    public int getDeid() {
        System.out.println(deid);
        return deid;
    }

    public void setDeid(int deid) {
        this.deid = deid;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    @Override
    public String toString() {
        return "Shoppingcart{" +
                "scid=" + scid +
                ", deid=" + deid +
                ", count=" + count +
                ", uid=" + uid +
                ", comname='" + comname + '\'' +
                ", config='" + config + '\'' +
                ", depraice=" + depraice +
                ", picture='" + picture + '\'' +
                '}';
    }
}
